package com.tangyuan.video.service.impl;

import com.tangyuan.common.result.Result;
import com.tangyuan.video.mapper.VideoDownloadMapper;
import com.tangyuan.video.service.VideoDownloadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class VideoDownloadServiceImpl implements VideoDownloadService {
    @Autowired
    VideoDownloadMapper videoDownloadMapper;

    @Override
    public Result getVideoDownLoadUrlById(Integer id) {
        String url = videoDownloadMapper.getVideoDownLoadUrlById(id);
        Map<String,String> resultMap = new HashMap<>();
        resultMap.put("url",url);
        return Result.ok(resultMap);

    }
}
